'use strict';

/**
 * Config constant
 */

app.constant('APP_MEDIAQUERY', {
    'desktopXL': 1200,
    'desktop': 992,
    'tablet': 768,
    'mobile': 480
});
app.constant('JS_REQUIRES', {
    //*** Scripts
    scripts: {
        //*** Javascript Plugins
        'modernizr': ['assets/js/plugins/modernizr.js'],
        'moment': ['assets/js/plugins/moment.min.js'],
        'spin': 'assets/js/plugins/spin.js',

        //*** jQuery Plugins
        'perfect-scrollbar-plugin': ['assets/js/plugins/perfect-scrollbar.jquery.min.js', 'assets/js/plugins/perfect-scrollbar.min.css'],
        'ladda': ['assets/js/plugins/ladda.min.js', 'assets/js/plugins/ladda-themeless.min.css'],
        'sweet-alert': ['assets/js/plugins/sweet-alert.min.js', 'assets/js/plugins/sweet-alert.css'],
        'chartjs': 'assets/js/plugins/Chart.min.js',
        'jquery-sparkline': 'assets/js/plugins/jquery.sparkline.min.js',
        'ckeditor-plugin': 'assets/js/plugins/ckeditor.js',
        'jquery-nestable-plugin': ['assets/js/plugins/jquery.nestable.js'],
        'touchspin-plugin': ['assets/js/plugins/jquery.bootstrap-touchspin.min.js', 'assets/js/plugins/jquery.bootstrap-touchspin.min.css'],
        'jquery_md5': ['assets/js/plugins/jquery.md5.js'],
        'hight-charts': ['assets/js/plugins/highcharts.js', 'assets/js/plugins/highcharts-ng.js'],
        
        //*** Controllers
        // 登录
        'loginCtrl': ['assets/js/controllers/login/loginCtrl.js','assets/css/pages/login.css','assets/js/api/Login-api.js'],
        'dashboardCtrl': ['assets/js/controllers/dashboardCtrl.js', 'assets/js/api/Dashboard-api.js', 'assets/css/pages/dashboard.css'],
        'mainContentCtrl': ['assets/js/controllers/mainContentCtrl.js', 'assets/css/pages/icons/style.css'],
        'utils': "assets/js/util/utils.js",
        'cookListCtrl': ['assets/js/controllers/cooks/cookListCtrl.js', 'assets/js/api/cook-api.js'],
        'addCookCtrl': ['assets/js/controllers/cooks/addCookCtrl.js', 'assets/js/api/cook-api.js'],
        'cookDetailCtrl': ['assets/js/controllers/cooks/cookDetailCtrl.js', 'assets/js/api/cook-api.js'],
        'modifyPasswdCtrl': ['assets/js/controllers/modifyPasswdCtrl.js'],
        'resourceDownloadCtrl': ['assets/js/controllers/resourceDownloadCtrl.js'],

        //*** 管理员
        'administratorCtrl': ['assets/js/controllers/administrator/administrator.js', 'assets/js/api/Administrator-api.js'],
        'administratorCreateCtrl': ['assets/js/controllers/administrator/administratorCreate.js', 'assets/js/api/Administrator-api.js'],
        'administratorEditCtrl': ['assets/js/controllers/administrator/administratorEdit.js', 'assets/js/api/Administrator-api.js'],

        //*** 协管员
        'wardenCtrl': ['assets/js/controllers/warden/warden.js', 'assets/js/api/Warden-api.js'],
        'wardenCreateCtrl': ['assets/js/controllers/warden/wardenCreate.js', 'assets/js/api/Warden-api.js'],
        'wardenEditCtrl': ['assets/js/controllers/warden/wardenEdit.js', 'assets/js/api/Warden-api.js'],

        //*** 群宴报备
        'reportCtrl': ['assets/js/controllers/report/report.js', 'assets/js/api/Report-api.js'],
        'reportInfoCtrl': ['assets/js/controllers/report/reportInfo.js', 'assets/js/api/Report-api.js','assets/css/pages/report_info.css'],
        'reportRecordCtrl': ['assets/js/controllers/report/reportRecord.js', 'assets/js/api/Report-api.js','assets/css/pages/report_record.css'],
        'reportRecordDetailCtrl': ['assets/js/controllers/report/reportRecordDetail.js', 'assets/js/api/Report-api.js','assets/css/pages/report_record.css'],
        //*** 统计报表
        'countCtrl': ['assets/js/controllers/count/count.js', 'assets/js/api/Count-api.js','assets/css/pages/count.css'],
        'countDetailCtrl': ['assets/js/controllers/count/countDetail.js', 'assets/js/api/Count-api.js','assets/css/pages/count.css'],


        //*** Filters
        'htmlToPlaintext': 'assets/js/filters/htmlToPlaintext.js',
        //保留两个小数
        'toDecimal2': 'assets/js/filters/toDecimal2.js'
    },
    //*** angularJS Modules
    modules: [{
        name: 'angularMoment',
        files: ['assets/js/plugins/angular-moment.min.js']
    }, {
        name: 'toaster',
        files: ['assets/js/plugins/toaster.js', 'assets/js/plugins/toaster.css']
    }, {
        name: 'angularBootstrapNavTree',
        files: ['assets/js/plugins/abn_tree_directive.js', 'assets/js/plugins/abn_tree.css']
    }, {
        name: 'angular-ladda',
        files: ['assets/js/plugins/angular-ladda.min.js']
    }, {
        name: 'ngTable',
        files: ['assets/js/plugins/ng-table.min.js', 'assets/js/plugins/ng-table.min.css']
    }, {
        name: 'ui.select',
        files: ['assets/js/plugins/select.min.js', 'assets/js/plugins/select.min.css', 'assets/js/plugins/select2.min.css', 'assets/js/plugins/select2-bootstrap.min.css', 'assets/js/plugins/selectize.bootstrap3.css']
    }, {
        name: 'ui.mask',
        files: ['assets/js/plugins/mask.min.js']
    }, {
        name: 'ngImgCrop',
        files: ['assets/js/plugins/ng-img-crop.js', 'assets/js/plugins/ng-img-crop.css']
    }, {
        name: 'angularFileUpload',
        files: ['assets/js/plugins/angular-file-upload.min.js']
    }, {
        name: 'ngAside',
        files: ['assets/js/plugins/angular-aside.min.js', 'assets/js/plugins/angular-aside.min.css']
    }, {
        name: 'truncate',
        files: ['assets/js/plugins/truncate.js']
    }, {
        name: 'oitozero.ngSweetAlert',
        files: ['assets/js/plugins/SweetAlert.min.js']
    }, {
        name: 'monospaced.elastic',
        files: ['assets/js/plugins/elastic.js']
    }, {
        name: 'ngMap',
        files: ['assets/js/plugins/ng-map.min.js']
    }, {
        name: 'tc.chartjs',
        files: ['assets/js/plugins/tc-angular-chartjs.min.js']
    }, {
        name: 'flow',
        files: ['assets/js/plugins/ng-flow-standalone.min.js']
    }, {
        name: 'uiSwitch',
        files: ['assets/js/plugins/angular-ui-switch.min.js', 'assets/js/plugins/angular-ui-switch.min.css']
    }, {
        name: 'ckeditor',
        files: ['assets/js/plugins/angular-ckeditor.min.js']
    }, {
        name: 'mwl.calendar',
        files: ['assets/js/plugins/angular-bootstrap-calendar.js', 'assets/js/plugins/angular-bootstrap-calendar-tpls.js', 'assets/js/plugins/angular-bootstrap-calendar.min.css']
    }, {
        name: 'ng-nestable',
        files: ['assets/js/plugins/angular-nestable.js']
    }, {
        name: 'vAccordion',
        files: ['assets/js/plugins/v-accordion.min.js', 'assets/js/plugins/v-accordion.min.css']
    }, {
        name: 'xeditable',
        files: ['assets/js/plugins/xeditable.min.js', 'assets/js/plugins/xeditable.css', 'assets/js/config/config-xeditable.js']
    }, {
        name: 'checklist-model',
        files: ['assets/js/plugins/checklist-model.js']
    }, {
        name: 'ng-chooser',
        files: ['assets/js/components/Chooser.js', 'assets/css/pages/chooseStyle.css']
    }, {
        name: 'infinite-scroll',
        files: ['assets/js/plugins/ng-infinite-scroll.js']
    }, {
        name: 'time-selector',
        files: ['assets/css/pages/time-selector.css']
    }, {
        name: 'ngLocale',
        files: ['assets/js/plugins/angular-locale_zh-cn.js', 'assets/css/pages/date-picker.css']
    }, {
        name: 'highcharts',
        files: ['assets/js/plugins/highcharts.js', 'assets/js/plugins/highcharts-ng.js']
    }, {
        name: 'dateTime',
        files: ['assets/js/plugins/calendar/mobiscroll.custom-2.17.0.min.css',
            'assets/js/plugins/calendar/mobiscroll.custom-2.17.0.min.js'
        ]
    }]
});
